package com.freewater.springboot.demo.ioc.circledependency;

import org.springframework.beans.factory.annotation.Autowired;

public class OtherService {

    @Autowired
    private SomeService someService;

    public String hello() {
        System.out.println("hello from other service");
        return "hello";
    }

    public String sayHi() {
        System.out.println("sayHi from other service");
        return "sayHi";
    }
}
